package com.soft.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.soft.entity.Goods;
import com.soft.service.GoodsService;

@RestController
public class GoodsController {
	@Autowired
	private GoodsService goodsService;
	@RequestMapping("/queryAllGoods")
	public List<Goods> queryAll(){
		return goodsService.queryAll();
	}
	@RequestMapping("/queryByGoodslocName")
	public List<Goods> queryByGoodslocName(String goodslocname){
		return goodsService.queryByGoodslocName(goodslocname);
	}

}
